# -*- coding: UTF-8 –*-
__author__ = 'WLH'

class LogEntry(object):
    def __init__(self):
        self.Name = ''
        self.Desc = ''
        self.MemberList = []
        self.Period = 10

    def Dump(self):
        print ('--------------------------LogEntry---------------------------')
        print ("Name=" + self.Name)
        print ("Desc=" + self.Desc)
        print ("Period=" + self.Period)
        for item in self.MemberList:
            item.Dump()
        print ('------------------------------end-------------------------------')


class LogEntryMem(object):
    def __init__(self):
        self.Name = ''
        self.Type = ''
        self.Unit = ''
        self.Note = ''
        self.Scale = 1.0
        self.ShowUnit = ''

    def Dump(self):
        print ('------------LogEntryMem-------------')
        print ("Name =" + self.Name)
        print ("Type =" + self.Type)
        print ("Units =" + self.Unit)
        print ("Note =" + self.Note)
        print ("Scale=" + self.Scale)
        print ("ShowUnit=" + self.ShowUnit)
        print ('---------------end------------------')
